package com.featherlike.feather.generator;

import java.util.List;
import java.util.Map;

import com.featherlike.feather.generator.entity.Column;
import com.featherlike.feather.generator.entity.Table;

/**
 * 执行器
 */
public final class GeneratorMain {
    private GeneratorMain() {
    }
    /**
     * main 方法
     * @param args 参数
     * @throws Exception 异常
     */
    public static void main(String[] args) throws Exception {
        IGenerator generator = new GeneratorImpl();
        //获取Map<表,List<列>>
        Map<Table, List<Column>> tableMap = generator.getTableMapFromExcel();
        generator.generateAll(tableMap);
    }
}
